package com.atfcm.utils;

import java.util.Arrays;
import java.util.Objects;
import java.util.stream.Collectors;

/**
 * @Author whaty
 * @create 2024/10/22 11:49
 */
public class U {
    public static final void toString(int[] nums){
        String collect = Arrays.stream(nums)
                .mapToObj(Integer::valueOf) // 装箱为 Integer 对象
                .map(Objects::toString)     // 转换为 String
                .collect(Collectors.joining(", "));
        System.out.println(collect);
    }
}
